Remove dead code
Use MonadMask and MonadIO instead of MonadExcIO