Ticket #56: REST is not closed when closing nebulo from console

Change-Id: Ie3caeb8ce26cb8cb0c2249b6ed3f769eade8cd13
Reviewed-on: http://naan.mimuw.edu.pl:8001/129
Tested-by: Nebulostore Nebulostore <nebulostore@gmail.com>
Reviewed-by: Krzysztof Rzadca <krzadca@mimuw.edu.pl>
Tested-by: Krzysztof Rzadca <krzadca@mimuw.edu.pl>