fix error handling in flow-manager
fix idle timeout value in discard_packet_in()