Add timeouts to ExUnit, closes #2660
Demonitor and flush when appropriate