Added action on expiry.

Fixed bug with metro version crashing if remote server not available