Create a custom block to allow elevators to "close" its doors while moving will require a block to be solid on side (think torches) doors will be able to respond to redstone signal to be used in other cases.