Upgraded JUnit
Prevent NPE on close request when a request is not already open.