improve error handling for socket.shutdown
fix for minute offset by adding moff to orb.rise and orb.set